package one;
public class Student {
    int number;  // 学号
    String name;   // 姓名
    double englishScore;  // 英语成绩
    double mathScore;      // 数学成绩
    double computerScore;   // 计算机成绩
    double totalScore;        // 总成绩
// 提供有参的构造方法
    public Student(int number, String name, double englishScore, double mathScore, double computerScore) {
        this.number = number;
        this.name = name;
        this.englishScore = englishScore;
        this.mathScore = mathScore;
        this.computerScore = computerScore;
    }
    // get,set方法

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(double englishScore) {
        this.englishScore = englishScore;
    }

    public double getMathScore() {
        return mathScore;
    }

    public void setMathScore(double mathScore) {
        this.mathScore = mathScore;
    }

    public double getComputerScore() {
        return computerScore;
    }

    public void setComputerScore(double computerScore) {
        this.computerScore = computerScore;
    }

    public double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(double totalScore) {
        this.totalScore = totalScore;
    }
    // 比较总成绩的方法
    public void compare(double totalScore1){

    }
    // 计算总成绩
    public double sum(){
        double total_score = englishScore+mathScore+computerScore;
        return total_score;
    }
    // 计算测评成绩
    public double testScore(){
        double test_score = sum()/3.0;
        return test_score;
    }
}
